package cn.yiutto.program.module.demo.controller.admin;

import cn.yiutto.program.framework.common.pojo.CommonResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import static cn.yiutto.program.framework.common.pojo.CommonResult.success;

/**
 * ClassName: DemoTestController
 * Package: cn.yiutto.program.module.demo.controller.admin
 * Description:
 *
 * @Author Yiutto
 * @Create 2024/11/21 10:48
 * @Version 1.0  
 */
//@Api(tags = "管理后台 - Test")
@Tag(name = "管理后台 - Test")
@RestController
@RequestMapping("/demo/test")
@Validated
public class DemoTestController {
    @GetMapping("/get")
//    @ApiOperation("获得 test 信息")
    @Operation(summary = "获得 test 信息")
//    @PreAuthorize("@ss.hasPermission('demo:test:query')")
    public CommonResult<String> get() {
        return success("true");
    }
}
